ADP\BaseVersion\Includes\Rule\PriceCalculator B

Total Complexity 100
Dependencies 15
Dependents 0
Total lines 527
Lines of code 329
Logical lines of code 198
Comment lines 107
Methods 17
Properties 3

Methods 17

Method Rating Maintainability Complexity Lines of code
calculatePriceForSet()
C
32 27 99
applyItemDiscount()
B
35 22 82
calculateAdjustmentsLeft()
A
45 16 42
calculateSinglePrice()
S
54 6 21
calculatePrice()
S
55 6 19
checkAdjustmentTotal()
S
70 4 6
checkDiscount()
S
66 4 8
applyToItem()
S
62 3 12
makePriceFixed()
S
69 2 7
applyToAllItemsInCollection()
S
73 2 5
makeDiscountPercentage()
S
69 2 6
makeFree()
S
82 1 3
__construct()
S
74 1 5
makeOverpriceAmount()
S
78 1 3
makeDiscountAmount()
S
78 1 3
makeOverpricePercentage()
S
77 1 3
checkOverprice()
S
73 1 5